package cn.sycoder.resp;
/**
 * 定义协议状态码
 */
public interface RespCode {

    /**
     * 定义协议-前后端统一按照协议状态码执行
     */

    // 新增
    int SAVE_SUCCESS_CODE = 20000;
    int SAVE_FAIL_CODE = 20001;

    // 删除
    int DELETE_SUCCESS_CODE = 20020;
    int DELETE_FAIL_CODE = 20021;

    // 修改
    int UPDATE_SUCCESS_CODE = 20010;
    int UPDATE_FAIL_CODE = 20011;

    // 查询
    int List_SUCCESS_CODE = 20040;
    int LIST_FAIL_CODE = 20041;

    // 登录成功
    String LOGIN_SUCCESS_CODE = "success";
    String LOGIN_FAIL_CODE = "false";

    // 执行成功
    boolean success = true;

}
